package com.greate.community.service;

import com.greate.community.entity.Message;
import com.greate.community.util.CommunityConstant;

import java.util.List;

public interface MessageService extends CommunityConstant {
    List<Message> findConversations(int userId, int offset, int limit);
    Integer findConversationCout(int userId);
    List<Message> findLetters(String conversationId, int offset, int limit);
    Integer findLetterCount(String conversationId);
    Integer findLetterUnreadCount(int userId, String conversationId);
    Integer readMessage(List<Integer> ids);
    Integer addMessage(Message message);
    Message findLatestNotice(int userId, String topic);
    Integer findNoticeCount(int userId, String topic);
    Integer findNoticeUnReadCount(int userId, String topic);
    List<Message> findNotices(int userId, String topic, int offset, int limit);

}
